package simplefactory.fruits.abstracts;

import java.math.BigDecimal;

/**
 * @ClassName: Fruits
 * @Description: 水果大全
 * @Date: 2021/1/12 14:11
 * @Author: Song JinGen
 */
public abstract class Fruits {
    /**
     * 名称
     */
    public String name;
    /**
     * 价格
     */
    public BigDecimal cost;

    public void prepare(){
        System.out.println("准备" + name + "，价格" + cost + "元");
    }

    public void box(){
        System.out.println("打包中...");
    }

}
